<template>
  <el-table :data="list" style="width: 100%;padding-top: 15px;">
    <el-table-column width="50" type="index" />
    <el-table-column label="记录" prop="data" />
  </el-table>
</template>

<script>
import { transactionList } from '@/api/remote-search'

export default {
  data() {
    return {
      list: null
    }
  },
  created() {
    this.fetchData()
  },
  methods: {
    fetchData() {
      transactionList().then(res => {
        console.log(res)
        this.list = res.message
      })
    }
  }
}
</script>
